package cc.mrbird.alarm.dao;

import cc.mrbird.alarm.domain.AlarmInfo;
import cc.mrbird.common.config.MyMapper;
import cc.mrbird.management.domain.ManagementInstitutions;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AlarmInfoMapper extends MyMapper<AlarmInfo> {

    List<AlarmInfo> findAlarmInfoList(AlarmInfo alarmInfo);

    List<AlarmInfo> findAllTypeAndId();

    AlarmInfo findByIdAndTime(@Param("alarmInfo_id") long alarmInfo_id,@Param("nextTime") String nextTime);

    List<AlarmInfo> findAllByAlarmType();

    AlarmInfo findById(long id);
}
